package com.passbook.merchant.convert;

import com.passbook.merchant.api.dto.MerchantDTO;
import com.passbook.merchant.vo.MerchantRegisterVO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

@Mapper
public interface MerchantRegisterConvert {

    MerchantRegisterConvert INSTANCE = Mappers.getMapper(MerchantRegisterConvert.class);

    /**
     * vo 转 dto
     * @param vo {@link MerchantRegisterVO}
     * @return {@link MerchantDTO}
     */
    MerchantDTO vo2dto(MerchantRegisterVO vo);

    /**
     * dto 转 vo
     * @param dto {@link MerchantDTO}
     * @return {@link MerchantRegisterVO}
     */
    MerchantRegisterVO dto2vo(MerchantDTO dto);
}
